/**
 * 
 */
package com.pcbly.web.business.chart;

import java.util.List;

import com.pcbly.web.bean.chart.ChartDataGroupBean;
import com.pcbly.web.business.BaseServiceImp;
import com.pcbly.web.persistence.chart.ChartDataGroupDao;

/**
 * @author Administrator
 * @date 2009-7-13
 * @copyright lightsoft
 */
public class ChartDataGroupServiceImp extends
		BaseServiceImp<ChartDataGroupBean> implements ChartDataGroupService {

	public ChartDataGroupServiceImp(){
		super();
	}
	
	protected ChartDataGroupDao chartDataGroupDao;
	
	public void setChartDataGroupDao(ChartDataGroupDao chartDataGroupDao) {
		this.chartDataGroupDao = chartDataGroupDao;
	}

	/* (non-Javadoc)
	 * @see com.pcbly.web.business.chart.ChartDataGroupService#deleteChartDataGroupBean(java.lang.String)
	 */
	@Override
	public int deleteChartDataGroupBean(String id) throws Exception {
		// TODO Auto-generated method stub
		return chartDataGroupDao.deleteChartDataGroupBean(id);
	}

	/* (non-Javadoc)
	 * @see com.pcbly.web.business.chart.ChartDataGroupService#insertChartDataGroupBean(com.pcbly.web.bean.chart.ChartDataGroupBean)
	 */
	@Override
	public int insertChartDataGroupBean(ChartDataGroupBean bean)
			throws Exception {
		// TODO Auto-generated method stub
		return chartDataGroupDao.insertChartDataGroupBean(bean);
	}

	/* (non-Javadoc)
	 * @see com.pcbly.web.business.chart.ChartDataGroupService#queryChartDataGroupBeanById(java.lang.String)
	 */
	@Override
	public ChartDataGroupBean queryChartDataGroupBeanById(String id)
			throws Exception {
		// TODO Auto-generated method stub
		return chartDataGroupDao.queryChartDataGroupBeanById(id);
	}

	/* (non-Javadoc)
	 * @see com.pcbly.web.business.chart.ChartDataGroupService#queryList()
	 */
	@Override
	public List<ChartDataGroupBean> queryList() throws Exception {
		// TODO Auto-generated method stub
		return chartDataGroupDao.queryList();
	}

	/* (non-Javadoc)
	 * @see com.pcbly.web.business.chart.ChartDataGroupService#updateChartDataGroupBean(com.pcbly.web.bean.chart.ChartDataGroupBean)
	 */
	@Override
	public int updateChartDataGroupBean(ChartDataGroupBean bean)
			throws Exception {
		// TODO Auto-generated method stub
		return chartDataGroupDao.updateChartDataGroupBean(bean);
	}


	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
